package com.house.keeper.mapper;

import com.house.keeper.base.BaseMapper;
import com.house.keeper.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MenuMapper extends BaseMapper<Menu> {
    List<Menu> queryMenuByRoleId(int roleId);
    List<Menu> queryMenuByUserId(int userId);
}
